package com.flx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling // 开启定时任务
@ComponentScan(basePackages = {"com.flx", "exception"})
public class ProjectManagerApplication {
  public static void main(String[] args) {
    SpringApplication.run(ProjectManagerApplication.class, args);
    // 手动打印一个图形
    printStartupBanner();
  }

  public static void printStartupBanner() {
    System.out.println("  _____       _ _     _   _      _      ");
    System.out.println(" |  __ \\     (_) |   | | | |    | |     ");
    System.out.println(" | |__) |__ _ _| |__ | |_| | ___| |_ ___ ");
    System.out.println(" |  ___/ _ \\ | | '_ \\ __| |/ _ \\ __/ _ \\");
    System.out.println(" | |  |  __/ | | | | | |_| |  __/ ||  __/");
    System.out.println(" |_|   \\___|_|_|_| |_|\\___/\\__\\___|");
    System.out.println("                                    ");
    System.out.println("          项目启动成功！            ");
  }
}
